using System; 
using System.Collections.Generic; 
using System.Text; 
using FluentNHibernate.Mapping;
using habbo.Database.Entities;

namespace habbo.Database.Maps
{
    public class characterMap : ClassMap<character>
    {
        public characterMap()
        {
            Table("characters");
            LazyLoad();
            Id(x => x.id).GeneratedBy.Identity().Column("id");
            Map(x => x.username).Column("username").Not.Nullable();
            Map(x => x.figure).Column("figure").Not.Nullable();
            Map(x => x.motto).Column("motto").Not.Nullable();
            Map(x => x.auth_ticket).Column("auth_ticket").Not.Nullable();
            Map(x => x.credit_balance).Column("credit_balance").Not.Nullable();
            Map(x => x.gender).Column("gender").Not.Nullable();
            Map(x => x.realname).Column("realname").Not.Nullable();
        }
    }
}
